#include <iostream>
using namespace std;

class Base1 {
 public:
    void  display(){cout<<"I love C++!"<<endl;}
};
class Base2 {
 public:
    void display() const{cout<<"I love NUIST!"<<endl;}
};
class Derived: public Base1, public Base2 {
 public:
	int i;
};

int main(){
	Derived d;
	d.Base2::display();
	d.Base1::display();
}
